package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiProtocolMessage;

public class Mmochat_3_5S extends SkymobiProtocolMessage {
	int battleId;
	String chat;

	public Mmochat_3_5S() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_S_3_5);
	}

	@Override
	protected void encodeBody(SkymobiBuffer out) {
		out.putInt(battleId);
		out.putPrefixedString(chat, 2);
	}

	public void setBattleId(int battleId) {
		this.battleId = battleId;
	}

	public void setChat(String chat) {
		this.chat = chat;
	}

}
